package com.lx.common.exception;

/**
 * @author lixun Email:lx3027@126.com
 * @create 2021-08-14 19:27
 */
public class NoStockException extends RuntimeException {

    private Long skuId;

    public String message;

    public NoStockException(Long skuId) {
        super("为【" + skuId + "】的商品Id，没有足够的库存了");
    }

    public NoStockException(String message) {
        super(message);
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}
